package net.tycmc.cty.ctyms.timejob.iems.job;


import net.tycmc.cty.ctyms.timejob.common.DateControl;
import net.tycmc.cty.ctyms.timejob.iems.service.VclHealthStateService;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class VclHealthStatJob extends QuartzJobBean{
	private VclHealthStateService jobData;
    
	/**
	 * 设备健康状态统计
	 * 每天的"03:00:00"执行一次
	 **/
	@Override
	protected void executeInternal(JobExecutionContext arg0)
			throws JobExecutionException {
		System.out.println("设备健康状态统计开始："+DateControl.getDateTime(0));
		jobData.healthStateStart();
		System.out.println("设备健康状态统计结束："+DateControl.getDateTime(0));	
	}

	public void setJobData(VclHealthStateService jobData) {
		this.jobData = jobData;
	}

	public VclHealthStateService getJobData() {
		return jobData;
	}

}
